| Fully Qualified Name: | Zend\Db\Sql\Predicate\PredicateSet |
| Implements: | PredicateInterface, Countable |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | PredicateSet |
| addPredicate() | Add predicate to set | PredicateSet |
| addPredicates() | Add predicates to set | PredicateSet |
| andPredicate() | Add predicate using AND operator | PredicateSet |
| count() | Get count of attached predicates | PredicateSet |
| getExpressionData() | Get predicate parts for where statement | PredicateSet |
| getPredicates() | Return the predicates | PredicateSet |
| orPredicate() | Add predicate using OR operator | PredicateSet |
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $predicates | null|array | |
| $defaultCombination | string |
Returns:
Add predicate to set
| Parameter Name | Type | Description |
|---|---|---|
| $predicate | \PredicateInterface | |
| $combination | string |
Returns: self Provides a fluent interface
Add predicates to set
| Parameter Name | Type | Description |
|---|---|---|
| $predicates | \PredicateInterface|\Closure|string|array | |
| $combination | string |
Returns: self Provides a fluent interface
Add predicate using AND operator
| Parameter Name | Type | Description |
|---|---|---|
| $predicate | \PredicateInterface |
Returns: self Provides a fluent interface
Get count of attached predicates
Returns: int
Get predicate parts for where statement
Returns: array
Return the predicates
Returns: \PredicateInterface[]
Add predicate using OR operator
| Parameter Name | Type | Description |
|---|---|---|
| $predicate | \PredicateInterface |
Returns: self Provides a fluent interface